3.3.21 \(\int \frac {\sqrt {a+a \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx\) [221]

Optimal. Leaf size=36 \[ \frac {2 a \sqrt {\sec (c+d x)} \sin (c+d x)}{d \sqrt {a+a \sec (c+d x)}} \]

[Out]

2*a*sin(d*x+c)*sec(d*x+c)^(1/2)/d/(a+a*sec(d*x+c))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.040, Rules used = {3889} \begin {gather*} \frac {2 a \sin (c+d x) \sqrt {\sec (c+d x)}}{d \sqrt {a \sec (c+d x)+a}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[a + a*Sec[c + d*x]]/Sqrt[Sec[c + d*x]],x]

[Out]

(2*a*Sqrt[Sec[c + d*x]]*Sin[c + d*x])/(d*Sqrt[a + a*Sec[c + d*x]])

Rule 3889

Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.)], x_Symbol] :> Simp[-2*a*(Co
t[e + f*x]/(f*Sqrt[a + b*Csc[e + f*x]]*Sqrt[d*Csc[e + f*x]])), x] /; FreeQ[{a, b, d, e, f}, x] && EqQ[a^2 - b^
2, 0]

Rubi steps

\begin {align*} \int \frac {\sqrt {a+a \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx &=\frac {2 a \sqrt {\sec (c+d x)} \sin (c+d x)}{d \sqrt {a+a \sec (c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.10, size = 39, normalized size = 1.08 \begin {gather*} \frac {2 \sqrt {a (1+\sec (c+d x))} \tan \left (\frac {1}{2} (c+d x)\right )}{d \sqrt {\sec (c+d x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[a + a*Sec[c + d*x]]/Sqrt[Sec[c + d*x]],x]

[Out]

(2*Sqrt[a*(1 + Sec[c + d*x])]*Tan[(c + d*x)/2])/(d*Sqrt[Sec[c + d*x]])

________________________________________________________________________________________

Maple [A]
time = 0.13, size = 52, normalized size = 1.44

method result size
default \(-\frac {2 \left (-1+\cos \left (d x +c \right )\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}}{d \sin \left (d x +c \right ) \sqrt {\frac {1}{\cos \left (d x +c \right )}}}\) \(52\)
risch \(-\frac {i \sqrt {2}\, \sqrt {\frac {a \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )^{2}}{{\mathrm e}^{2 i \left (d x +c \right )}+1}}\, \left ({\mathrm e}^{i \left (d x +c \right )}-1\right )}{\sqrt {\frac {{\mathrm e}^{i \left (d x +c \right )}}{{\mathrm e}^{2 i \left (d x +c \right )}+1}}\, \left ({\mathrm e}^{i \left (d x +c \right )}+1\right ) d}\) \(89\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*sec(d*x+c))^(1/2)/sec(d*x+c)^(1/2),x,method=_RETURNVERBOSE)

[Out]

-2/d*(-1+cos(d*x+c))*(a*(1+cos(d*x+c))/cos(d*x+c))^(1/2)/sin(d*x+c)/(1/cos(d*x+c))^(1/2)

________________________________________________________________________________________

Maxima [A]
time = 0.53, size = 20, normalized size = 0.56 \begin {gather*} \frac {2 \, \sqrt {2} \sqrt {a} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(d*x+c))^(1/2)/sec(d*x+c)^(1/2),x, algorithm="maxima")

[Out]

2*sqrt(2)*sqrt(a)*sin(1/2*d*x + 1/2*c)/d

________________________________________________________________________________________

Fricas [A]
time = 2.76, size = 49, normalized size = 1.36 \begin {gather*} \frac {2 \, \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{d \cos \left (d x + c\right ) + d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(d*x+c))^(1/2)/sec(d*x+c)^(1/2),x, algorithm="fricas")

[Out]

2*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c)/(d*cos(d*x + c) + d)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {a \left (\sec {\left (c + d x \right )} + 1\right )}}{\sqrt {\sec {\left (c + d x \right )}}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(d*x+c))**(1/2)/sec(d*x+c)**(1/2),x)

[Out]

Integral(sqrt(a*(sec(c + d*x) + 1))/sqrt(sec(c + d*x)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(d*x+c))^(1/2)/sec(d*x+c)^(1/2),x, algorithm="giac")

[Out]

integrate(sqrt(a*sec(d*x + c) + a)/sqrt(sec(d*x + c)), x)

________________________________________________________________________________________

Mupad [B]
time = 0.54, size = 53, normalized size = 1.47 \begin {gather*} \frac {\sin \left (2\,c+2\,d\,x\right )\,\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}\,\sqrt {\frac {a\,\left (\cos \left (c+d\,x\right )+1\right )}{\cos \left (c+d\,x\right )}}}{d\,\left (\cos \left (c+d\,x\right )+1\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a/cos(c + d*x))^(1/2)/(1/cos(c + d*x))^(1/2),x)

[Out]

(sin(2*c + 2*d*x)*(1/cos(c + d*x))^(1/2)*((a*(cos(c + d*x) + 1))/cos(c + d*x))^(1/2))/(d*(cos(c + d*x) + 1))

________________________________________________________________________________________